<script setup>
import { ref } from 'vue'
import {sayHello} from '../api/hello'

const count = ref(0)
const message=ref("ty-music")

const hello = () => {
  sayHello().then(res=>{
    message.value=res.data
  })
  
}
</script>

<template>
  <h1>{{ message }}</h1>

  <q-btn color="deep-orange" @click="count++">点击次数：{{count}}</q-btn>
  <br>
  <br>
  <q-btn color="deep-orange" @click="hello">请求接口</q-btn>

</template>

<style scoped>
.read-the-docs {
  color: #888;
}

</style>
